package com.wuchao.spring.print;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author wuchao66
 * @Date 2023/9/21 15:53
 * @PackageName:com.wuchao.spring.print
 * @ClassName: Test
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        //Printer.show(new Color(),new A4());
        //ico 反转 和依赖注入
        //spring是什么  beans core context--容器
        ClassPathXmlApplicationContext cpac =
                new ClassPathXmlApplicationContext("ApplicationContext.xml");
        //拆箱 类型转换
        ((Printer1) cpac.getBean("printer1")).show();
    }
}
